home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive / 000028_neal@ctd.comsat.com_Sun Mar 5 03:39:00 1995.msg < prev    next >
Internet Message Format  |  1995-03-08  |  1KB

  1. Received: from neal.ctd.comsat.com by cs.umb.edu with SMTP id AA19323
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Sun, 5 Mar 1995 08:39:05 -0500
  3. Received: by neal.ctd.comsat.com (Smail3.1.29.0 #3)
  4.     id m0rlGWW-000343C; Sun, 5 Mar 95 08:39 EST
  5. Message-Id: <m0rlGWW-000343C@neal.ctd.comsat.com>
  6. Date: Sun, 5 Mar 95 08:39 EST
  7. From: neal@ctd.comsat.com (Neal Becker)
  8. To: tex-k@cs.umb.edu
  9. Subject: xdvi linux X_WCHAR SOLUTION
  10. In-Reply-To: <Pine.SUN.3.91.950304224752.18704A-100000@panix.com>
  11. References: <Pine.SUN.3.91.950304224752.18704A-100000@panix.com>
  12.  
  13. I have brought this up before.  Previously I had said that Xosdefs.h
  14. should be fixed, because it says:
  15.  
  16. #ifdef i386
  17. #ifdef SYSV
  18. #ifndef SCO
  19. #define X_NOT_POSIX
  20. #endif
  21. #define X_NOT_STDC_ENV
  22. #endif
  23. #endif
  24.  
  25. Linux has i386, so if you define SYSV then you get X_NOT_STC_ENV,
  26. which is wrong, and causes the problem in Xlib.h:
  27.  
  28. #ifndef X_WCHAR
  29. #ifdef X_NOT_STDC_ENV
  30. #ifndef SCO324
  31. #define X_WCHAR
  32. #endif
  33. #endif
  34. #endif
  35.  
  36. Previously I suggested that Xosdefs.h should be modified.  I have
  37. discussed this with David Dawes <dawes@physics.usyd.edu.au>.  He has
  38. convinced me that 
  39.  
  40. defining SYSV in any X program (on linux) is *wrong*.  So the real
  41. problem is in kpathsea, where we find the real cause of the trouble is
  42. in c-memstr.h where SYSV is wrongly defined.
  43.  
  44. SYSV triggers so many things in X headers.  X client programs should
  45. NEVER define it.